﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.AccountsDomain;
using ShivamEMR.Model.Domain.LocationDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.AssetsDomain
{
   public class Asset
    {
        #region Properties
        public Guid ID { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
        public int AssetGroupID { get; set; }
        public Nullable<int> DepreciationID { get; set; }
        public Nullable<Guid> AssetPictureID { get; set; }
        public int AssetStatusID { get; set; }
        public Guid LocationID { get; set; } 
        #endregion

        #region NavigationalProperties
       [ForeignKey("AssetGroupID")]
        public virtual AssetGroup Group { get; set; }
       [ForeignKey("DepreciationID")]
        public virtual Depreciation Depreciation { get; set; }
       [ForeignKey("AssetPictureID")]
        public virtual AssetPicture Picture { get; set; }
       [ForeignKey("AssetStatusID")]
        public virtual AssetStatus Status { get; set; }
       [ForeignKey("LocationID")]
        public virtual Location Location { get; set; }
        #endregion
       
    }
}
